package com.bw.module_cashier.view

import android.annotation.SuppressLint

import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.bw.lib_base.path.RouterPath
import com.bw.lib_base.view.BaseActivity
import com.bw.lib_common.entity.CashierBillEntity
import com.bw.lib_common.entity.CashierPayerEntity
import com.bw.module_cashier.R
import com.bw.module_cashier.databinding.ActivityChargeDetailBinding
import dagger.hilt.android.AndroidEntryPoint
/**
 * 智慧园区-05-收银台V1.1-20250508
 */
@AndroidEntryPoint
@Route(path = RouterPath.PATH_CHARGE_ACTIVITY)
class ChargeDetailActivity : BaseActivity<ActivityChargeDetailBinding>() {
    @Autowired(name = "cashierChargeEntity")
    lateinit var entity: CashierBillEntity

    @Autowired(name = "cashierPayerEntity")
    lateinit var entity1: CashierPayerEntity

    @SuppressLint("SetTextI18n")
    override fun initView() {
        ARouter.getInstance().inject(this)
        mDataBinding.transactionNumber.text = "交易流水号：" + entity1.transactionNumber
        mDataBinding.bean = entity
        mDataBinding.imageView.setOnClickListener {
            finish()
        }
    }

    override fun getLayoutId(): Int = R.layout.activity_charge_detail

}